<%= form :action => '/foo' do %>
  <%= file_field :name => 'bar' %>
<% end =%>
